<template>
  <div class="popupApp">
    <h1 @click="open()">欢迎来到chrome插件助手</h1>
    <router-link to="/example">测试路由</router-link>
    <router-view />
  </div>
</template>

<script>
export default {
  name: "PopupApp",
  methods: {
    open() {
      //window.open(chrome.extension.getURL('popup.html'));
      chrome.tabs.create(
        { url: chrome.extension.getURL("popup.html") },
        function () {}
      );
    },
  },
};
</script>

<style lang="less" scoped>
  .popupApp {
    height: 50px;
    color: #000;
    /* line-height: 120px; */
    text-align: center;
    font-weight: bold;
  }
</style>
